package com.gaofeng.day06;

import java.util.Scanner;

public class stringdemo02 {
    public static void main(String[] args) {
        //
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数字");
        String str = sc.next();

//        StringBuilder sb = new StringBuilder();
//        sb.append(str);
//        sb.reverse();
//        System.out.println(sb);

        String result = new StringBuilder().append(str).reverse().toString();
        System.out.println(result);

        if(str.equals(result)){
            System.out.println("当前字符是对称字符创");
        }else{
            System.out.println("当前字符不是对称字符创");
        }
    }
}
